package simpledemo;

import simpledemo.democlass.DemoClass;

/**
 * @Author: zhangrongqing
 * @Date: 2020/4/24 10:35
 * 测试一下Class和Instance的区别
 */
public class ClassAndInstance {

    public static void main(String[] args) {

        DemoClass demoClass = new DemoClass();

        try {
            DemoClass demoClass1 = demoClass.getClass().newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
    }
}
